<<<<<<< HEAD
<<<<<<< HEAD
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

// 配置项目路由
const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/home' // 重定向
    },
    {
      path: '/topic',//专题
      name: 'Topic',
      component: () => import('@/views/Topic'),
      meta: {
        isShowTabbar: true
      }
    },
    {
      path: '/cart',//购物车
      name: 'Cart',
      component: () => import('@/views/Cart'),
      meta: {
        isShowTabbar: true
      }
    },
    {
      path: '/user',//我的
      name: 'User',
      component: () => import('@/views/User'),
      meta: {
        isShowTabbar: true
      },
    },
  ],
  
  mode: 'history',
  base: process.env.BASE_URL,
=======
import VueRouter from 'vue-router';
import Vue from 'vue';
=======
import Vue from "vue"
import VueRouter from "vue-router"

>>>>>>> dec3558e7a9a8916e1c25123121bbb12ff9cb776
Vue.use(VueRouter)

// 配置项目路由
const router = new VueRouter({
    routes: [
        {
            path: '/',
            redirect: '/home' // 重定向
        },
        {
            path: '/home',//首页
            name: 'Home',
            component: () => import('@/views/Home'),
            meta: { // 用来判断该组件对应的页面是否显示底部tabbar
                    isShowTabbar: true
            },
            children: [
                {
                    path: 'searchpop',
                    name: 'Searchpop',
                    component: () => import('@/views/Searchpop')
                }
            ]
        },
        {
            path: '/category',//分类
            name: 'Category',
            component: () => import('@/views/Category'),
            meta: { // 用来判断该组件对应的页面是否显示底部tabbar
                isShowTabbar: true
            }
<<<<<<< HEAD
        ],
        meta: {
            showtarbar: true
        }
    },
    {
        path: '/special',
        component: Special,
        name: 'special',
        meta: {
            showtarbar: true
        }
    },
    {
        path: '/classify',
        component: Classify,
        name: 'classify',
        meta: {
            showtarbar: true
        }
    },
    {
        path: '/cart',
        component: Cart,
        name: 'cart',
        meta: {
            showtarbar: true
        }
    },
    {
        path: '/mine',
        component: Mine,
        name: 'mine',
        meta: {
            showtarbar: true
        }
    },
]

// 第二步：创建路由实例对象
const router = new VueRouter({
    mode: 'history',
    routes
>>>>>>> b1a4ac4268abf08802b874e0e5d26b735a6e1e89
})

export default router

<<<<<<< HEAD
=======

>>>>>>> b1a4ac4268abf08802b874e0e5d26b735a6e1e89
=======
        },
    ]
})

export default router
>>>>>>> dec3558e7a9a8916e1c25123121bbb12ff9cb776
